<?php

use Illuminate\Routing\Router;
Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    //新闻模块
    $router->resource('news', NewsController::class);
    //帖子模块
    $router->resource('issue', IssueController::class);
    //用户模块
    $router->resource('user', UserController::class);
    //球员
    $router->resource('player', PlayerController::class);
    //赛程
    $router->resource('match', MatchController::class);
    $router->any('match/match_insert','MatchController@matchInsert')->name('admin.match.match_insert');
    //评论
    $router->resource('comment', CommentController::class);
    //评论回复
    $router->resource('comment_reply', CommentReplyController::class);
    //球队
    $router->resource('team', TeamController::class);
    //文章标签管理
    $router->resource('team', TeamController::class);

    //图片上传
    Route::post('api/upimage','UploadController@upimage');
});
